/**
 * @(#)SimulatorUVConfigDAOImpl.java 2017年2月28日
 * Copyright(C) 2015 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.jsbd.boss.dao.ISimulatorUVConfigDAO;
import org.jsbd.boss.domian.SimulatorUVConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * TODO 请加入本类的说明
 * @author <a href="mailto:zhangbinghua@zhexinit.com" >zbh</a>
 * @version 1.0.0
 */
@Service
public class SimulatorUVConfigDAOImpl extends CrackBaseDao implements ISimulatorUVConfigDAO {
	public static final Logger LOGGER = LoggerFactory.getLogger(SimulatorUVConfigDAOImpl.class);

	
	@Override
	public Map<String, Object> selectConfigPageListMap(SimulatorUVConfig form) {
		form = (form == null ? new SimulatorUVConfig() : form);
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("total", super.queryForCount("qy_simulatoruv_config.select_config_page_list_count", form));
		map.put("rows", super.queryForList("qy_simulatoruv_config.select_config_page_list", form));
		return map;
	}
	
	@Override
	public List<SimulatorUVConfig> getSimulatorUVConfigList() {
		return super.queryForList("qy_simulatoruv_config.select_all_config_list" );
	}

	@Override
	public void saveSimulatorUVConfig(SimulatorUVConfig config) {
		 super.insert("qy_simulatoruv_config.INSERT_SIMULATE_CONFIG", config);

	}

	@Override
	public void abandonSimulatorUVConfig(String id) {
		super.update("qy_simulatoruv_config.ABANDON_CONFIG", id);
	}

	@Override
	public void effectSimulatorUVConfig(String id) {
		super.update("qy_simulatoruv_config.EFFECT_CONFIG", id);

	}

	@Override
	public void updateSimulatorUVConfig(SimulatorUVConfig config) {
		super.update("qy_simulatoruv_config.UPDATE_COUNT_BYID", config);

	}
}
